package com.yehangtech.designpattern.结构型_装饰者.intercepet;

/**
 * 单点登录拦截器
 */
// todo 这个抽象类是核心
public abstract class SsoDecorator implements HandlerInterceptor {

    private HandlerInterceptor handlerInterceptor;

    public SsoDecorator() {
    }

    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }

    @Override
    public boolean preHandler(String request, String response, Object handler) {
        return handlerInterceptor.preHandler(request, response, handler);
    }
}
